Skip to main content

Image Preview

Tento comex control dokáže na comexu zobrazit požadovaný obrázek. Lze vybrat více formátů obrázku

Obrázek

Šablona

<xsl:template name="image_preview">

<xsl:param name="refValue" select="." />

<xsl:param name="docType" select="../@type" />

<xsl:param name="docKey" select="concat(../@dkey,../@pdk)" />

<xsl:param name="arrayKey" select="../@S10001980" />

<xsl:param name="arrayId" select="100108" />

<xsl:param name="fieldId" select="substring(name(),2,8)" />

<cxd-control name="image-preview">

<cxd-param name="src">

<xsl:attribute name="value">

<xsl:text>/</xsl:text>

<xsl:value-of select="$refValue" />

<xsl:text>?type=</xsl:text>

<xsl:value-of select="$docType" />

<xsl:text>~key=</xsl:text>

<xsl:value-of select="$docKey" />

<xsl:text>~arrayid=</xsl:text>

<xsl:value-of select="$arrayId" />

<xsl:text>~arraykey=</xsl:text>

<xsl:value-of select="$arrayKey" />

<xsl:text>~fieldid=</xsl:text>

<xsl:value-of select="$fieldId" />

</xsl:attribute>

</cxd-param>

</cxd-control>

</xsl:template>

Parametry

  • src - zdroj obrázku